<?php if (!defined("RUNTIME")) exit();  /*a:5:{s:54:"D:\wamp64\www\foxcms\app\admin\view\sitemap\index.html";i:1735316111;s:47:"D:\wamp64\www\foxcms\app\admin\view\foxcms.html";i:1735316111;s:44:"D:\wamp64\www\foxcms\app\admin\view\css.html";i:1735316111;s:52:"D:\wamp64\www\foxcms\app\admin\view\footed-copy.html";i:1735316111;s:47:"D:\wamp64\www\foxcms\app\admin\view\script.html";i:1735316111;}*/ ?>
<!DOCTYPE html>
<html lang="cn">
<head>
    <meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title><?php echo xn_cfg('base.sys_name'); ?></title>
<link rel="stylesheet" href="<?php echo htmlentities($staticPath); ?>css/foxui-1.32.min.css" />
<link rel="stylesheet" href="<?php echo htmlentities($staticPath); ?>css/common.min.css" />
<link rel="stylesheet" href="<?php echo htmlentities($staticPath); ?>css/admin_common.css" />
    

</head>
<body>
    <div class="foxcms-container basic-set-page-container apply-page-container">
        <div class="foxcms-header">
            <div class="foxcms-logo">
                <img style="width: 100px;" src="/static/images/foxcms_logo.svg">
            </div>
            <div class="foxcms-modal">
                <?php if($clickName): ?>
                <p><?php echo htmlentities($clickName); ?></p>
                <?php else: ?>
                <button class="foxui-text" onclick="window.history.go(-1)">
                    <i class="foxui-icon-fanhui-o"></i>
                    <span>返回</span>
                </button>
                <?php endif; ?>
            </div>
            <div class="foxcms-bar">
                <div class="foxcms-bar-left">
                    <ul class="foxui-breadcrumb">
                        <?php if(is_array($breadcrumb) || $breadcrumb instanceof \think\Collection || $breadcrumb instanceof \think\Paginator): if( count($breadcrumb)==0 ) : echo "" ;else: foreach($breadcrumb as $key=>$vo): ?>
                        <li class="foxui-breadcrumb-item">
                            <a href="<?php echo htmlentities($vo['url']); ?>"><?php echo htmlentities($vo['title']); ?></a>
                        </li>
                        <?php endforeach; endif; else: echo "" ;endif; ?>
                    </ul>
                </div>
                <div class="foxcms-bar-right">

                    <div class="foxui-dropdown lang-select">
                        <?php if(sizeof($otherLangs) > 0): ?>
                        <button class="foxui-dropdown-handle foxui-dropdown-icon lang-btn" data-trigger="hover" data-lang="<?php echo htmlentities($curlang['lang']); ?>"><?php echo htmlentities($curlang['name']); ?></button>
                        <div class="foxui-dropdown-menu">
                            <ul class="foxui-dropdown-slide">
                                <?php foreach($otherLangs as $key=>$vo): ?>
                                <li class="foxui-dropdown-item" data-id="<?php echo htmlentities($vo['id']); ?>" data-lang="<?php echo htmlentities($vo['lang']); ?>" onclick="langHandover(this)"><?php echo htmlentities($vo['name']); ?></li>
                                <?php endforeach; ?>
                            </ul>
                        </div>
                        <?php else: ?>
                        <button class="foxui-dropdown-handle foxui-dropdown-icon lang-btn display-none" data-trigger="hover" data-lang="<?php echo htmlentities($curlang['lang']); ?>"><?php echo htmlentities($curlang['name']); ?></button>
                        <?php endif; ?>
                    </div>

                    <div class="item icon index">
                        <i class="foxui-icon-shouye-o"></i>
                    </div>
                    <div class="item role">
                        <div class="foxui-dropdown">
                            <button class="foxui-text foxui-dropdown-handle foxui-dropdown-icon" data-trigger="hover" id="barService">
                                <i class="foxui-icon-kefu-o"></i>
                            </button>
                        </div>
                        <div class="foxui-dropdown dropdown">
                            <button class="foxui-text foxui-dropdown-handle foxui-dropdown-icon" data-trigger="hover"><?php echo session("admin_auth.nickname"); ?></button>
                            <div class="foxui-dropdown-menu">
                                <ul class="foxui-dropdown-slide">
                                    <li class="foxui-dropdown-item" data-id="1">个人中心</li>
                                    <li class="foxui-dropdown-item" data-id="2">修改密码</li>
                                    <li class="foxui-dropdown-item" data-id="3">更新缓存</li>
                                    <li class="foxui-divided" data-id="4"></li>
                                    <li class="foxui-dropdown-item" data-id="5">退出系统</li>
                                </ul>
                            </div>
                        </div>
                    </div>
                    <div class="item icon logout">
                        <a onclick="logout()"><i class="foxui-icon-tuichu-o"></i></a>
                    </div>
                </div>
            </div>
        </div>
        <div class="foxcms-main">
            <div class="foxcms-nav">
                <ul>
                    <?php if(is_array($menu) || $menu instanceof \think\Collection || $menu instanceof \think\Paginator): if( count($menu)==0 ) : echo "" ;else: foreach($menu as $key=>$vo): ?>
                    <li>
                        <a class="<?php if($pid == $vo['id']): ?>active<?php endif; ?>" href="<?php echo htmlentities($vo['name']); ?>">
                            <i class="foxui-<?php echo htmlentities($vo['icon']); ?>"></i>
                            <span><?php echo htmlentities($vo['title']); ?></span>
                        </a>
                    </li>
                    <?php endforeach; endif; else: echo "" ;endif; ?>
                </ul>
            </div>
            <?php if(sizeof($chileMenus) > 0): ?>
            <div class="foxcms-menu-nav" style="<?php echo htmlentities($fox_menu); ?>">
                <div class="foxcms-menu-nav-inner" id="foxMenuFrame">

                    <ul class="foxui-menu foxui-type-vertical">
                        <?php if(is_array($chileMenus) || $chileMenus instanceof \think\Collection || $chileMenus instanceof \think\Paginator): if( count($chileMenus)==0 ) : echo "" ;else: foreach($chileMenus as $key=>$cm): if(empty($cm['_data']) != true): ?>
                        <li class="foxui-menu-submenu">
                            <div class="foxui-menu-handle foxui-menu-icon is-active">
                                <span><?php echo htmlentities($cm['title']); ?></span>
                            </div>
                            <div class="foxui-menu-menu" style="display: block">
                                <ul class="foxui-menu-slide">
                                    <?php if(is_array($cm['_data']) || $cm['_data'] instanceof \think\Collection || $cm['_data'] instanceof \think\Paginator): if( count($cm['_data'])==0 ) : echo "" ;else: foreach($cm['_data'] as $key=>$ccm): if(empty($ccm['_data']) != true): ?>
                                    <li class="foxui-menu-submenu">
                                        <div class="foxui-menu-handle foxui-menu-icon is-active">
                                            <span><?php echo htmlentities($ccm['title']); ?></span>
                                        </div>
                                        <div class="foxui-menu-menu" style="display: block">
                                            <ul class="foxui-menu-slide">
                                                <?php if(is_array($ccm['_data']) || $ccm['_data'] instanceof \think\Collection || $ccm['_data'] instanceof \think\Paginator): if( count($ccm['_data'])==0 ) : echo "" ;else: foreach($ccm['_data'] as $key=>$cccm): if($clickId == $cccm['id']): ?>
                                                <li class="foxui-menu-item is-active"><?php echo htmlentities($cccm['title']); ?></li>
                                                <?php else: ?>
                                                <li class="foxui-menu-item">
                                                    <a href="<?php echo htmlentities($cccm['name']); ?>?columnId=<?php echo htmlentities($cccm['id']); ?>"><?php echo htmlentities($cccm['title']); ?></a>
                                                </li>
                                                <?php endif; ?>
                                                <?php endforeach; endif; else: echo "" ;endif; ?>
                                            </ul>
                                        </div>
                                    </li>
                                    <?php else: ?>
                                    <li class="foxui-menu-item <?php if($clickId == $ccm['id']): ?>is-active<?php endif; ?>">
                                        <a href="<?php echo htmlentities($ccm['name']); ?>?columnId=<?php echo htmlentities($ccm['id']); ?>"><?php echo htmlentities($ccm['title']); ?></a>
                                    </li>
                                    <?php endif; ?>
                                    <?php endforeach; endif; else: echo "" ;endif; ?>
                                </ul>
                            </div>
                        </li>
                        <?php else: ?>
                        <li class="foxui-menu-item <?php if($clickId == $cm['id']): ?>is-active<?php endif; ?>">
                            <a href="<?php echo htmlentities($cm['name']); ?>?columnId=<?php echo htmlentities($cm['id']); ?>"><?php echo htmlentities($cm['title']); ?></a>
                        </li>
                        <?php endif; ?>
                        <?php endforeach; endif; else: echo "" ;endif; ?>
                    </ul>
                </div>
                <div class="foxcms-menu-nav-fold">
                    <i class="foxui-icon-zuizuo"></i>
                </div>
            </div>
            <?php endif; ?>
            <div class="foxcms-article foxui-scroll-container has-content-footer">
                <div class="foxcms-content">
                    



<div class="foxcms-content-inner">
    <!-- page content -->
    <div class="basic-set-content">
        <div class="section section-panel">
            <div class="section-title">Sitemap网站地图</div>
            <div class="section-main">
                <!--<div class="section-main-item">
                    <div class="foxui-input-group">
                        <div class="input-label">
                            <label class="foxui-required">自动生成：</label>
                        </div>
                        <div class="input-box is_auto">
                            <div class="foxui-radio-group">
                                <div class="foxui-radio <?php if(($sitemap['is_auto']) == 1): ?> is-checked <?php endif; ?>">
                                    <span class="foxui-radio-input">
                                        <i class="foxui-radio-icon"></i>
                                        <input type="radio" value="1"/>
                                    </span>
                                    <span class="foxui-radio-label">启用</span>
                                </div>
                                <div class="foxui-radio <?php if(($sitemap['is_auto']) == 0): ?> is-checked <?php endif; ?>">
                                    <span class="foxui-radio-input">
                                        <i class="foxui-radio-icon"></i>
                                        <input type="radio" value="0"/>
                                    </span>
                                    <span class="foxui-radio-label" name="is_auto">关闭</span>
                                    <i id="wenti" class="foxui-icon-wenti-o foxui-margin-left-8"></i>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>-->

                <div class="section-main-item">
                    <div class="foxui-input-group">
                        <div class="input-label">
                            <label>过滤栏目及内容：</label>
                        </div>
                        <div class="input-box filter0">
                            <div class="foxui-checkbox <?php if(in_array('hide_column', $filters)): ?>is-checked<?php endif; ?>">
								<span class="foxui-checkbox-input">
									<i class="foxui-checkbox-icon"></i>
									<input type="checkbox" value="hide_column" checked="checked"/>
								</span>
                                <span class="foxui-checkbox-label">过滤隐藏栏目</span>
                            </div>
                            <div class="foxui-checkbox <?php if(in_array('outer_model', $filters)): ?>is-checked<?php endif; ?>">
								<span class="foxui-checkbox-input">
									<i class="foxui-checkbox-icon"></i>
									<input type="checkbox" value="outer_model"/>
								</span>
                                <span class="foxui-checkbox-label">过滤外部模块</span>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="section-main-item sitemap_type">
                    <div class="foxui-input-group foxui-align-items-start">
                        <div class="input-label">
                            <label>Sitemap类型：</label>
                        </div>
                        <div class="block-box foxui-radio-group foxui-display-flex foxui-flex-column">

                            <div class="foxui-margin-bottom-24">
                                <div onclick="checkItem(event)" class="foxui-checkbox foxui-margin-left-0 foxui-margin-bottom-12 <?php if(in_array('xml',$sitemapTypes)): ?>is-checked<?php endif; ?>">
                                    <span class="foxui-checkbox-input">
                                        <i class="foxui-checkbox-icon"></i>
                                        <input type="checkbox" value="xml">
                                    </span>
                                    <span class="foxui-radio-label">xml地图 </span>
                                </div>
                                <div class="foxui-display-inline-block <?php if(!in_array('xml',$sitemapTypes)): ?>display-none<?php endif; ?>">
                                    <span class="foxui-margin-left-8 blue-color" style="display: inline-block">
                                        <a href="<?php echo htmlentities($sm['xml_url']); ?>" target="_blank"><?php echo htmlentities($sm['xml_url']); ?></a>
                                    </span>
                                    <button class="foxui-plain-primary foxui-margin-left-8 foxui-size-mini" onclick="handUpdate('xml')">更新</button>
                                </div>
                            </div>

                            <div class="foxui-margin-bottom-24">
                                <div onclick="checkItem(event)" class="foxui-checkbox foxui-margin-left-0 foxui-margin-bottom-12 <?php if(in_array('txt',$sitemapTypes)): ?>is-checked<?php endif; ?>">
                                    <span class="foxui-checkbox-input">
                                        <i class="foxui-checkbox-icon"></i>
                                        <input type="checkbox" value="txt"/>
                                    </span>
                                    <span class="foxui-radio-label">txt地图 </span>
                                </div>
                                <div class="foxui-display-inline-block <?php if(!in_array('txt',$sitemapTypes)): ?>display-none<?php endif; ?>">
                                    <span class="foxui-margin-left-8 blue-color" style="display: inline-block">
                                        <a href="<?php echo htmlentities($sm['txt_url']); ?>" target="_blank"><?php echo htmlentities($sm['txt_url']); ?></a>
                                    </span>
                                    <button class="foxui-plain-primary foxui-margin-left-8 foxui-size-mini" onclick="handUpdate('txt')">更新</button>
                                </div>
                            </div>

                            <div class="foxui-margin-bottom-24">
                                <div onclick="checkItem(event)" class="foxui-checkbox foxui-margin-left-0 foxui-margin-bottom-12 <?php if(in_array('html',$sitemapTypes)): ?>is-checked<?php endif; ?>">
                                     <span class="foxui-checkbox-input">
                                        <i class="foxui-checkbox-icon"></i>
                                        <input type="checkbox" value="html"/>
                                     </span>
                                    <span class="foxui-radio-label">html地图 </span>
                                </div>
                                <div class="foxui-display-inline-block <?php if(!in_array('html',$sitemapTypes)): ?>display-none<?php endif; ?>">
                                    <span class="foxui-margin-left-8 blue-color" style="display: inline-block">
                                        <span class="foxui-margin-left-8 blue-color" style="display: inline-block">
                                            <a href="<?php echo htmlentities($sm['html_url']); ?>" target="_blank"><?php echo htmlentities($sm['html_url']); ?></a>
                                        </span>
                                    </span>

                                    <button class="foxui-plain-primary foxui-margin-left-8 foxui-size-mini" onclick="handUpdate('html')">更新</button>

<!--                                    <span>(<a onclick="checkExample(event)">查看模板</a><span>: <?php echo htmlentities($sitemap); ?></span>)</span>-->
                                </div>
                            </div>

                        </div>
                    </div>
                </div>

                <!--<div class="section-main-item frequency foxui-margin-top-4">
                    <div class="foxui-input-group">
                        <div class="input-label">
                            <label>更新频率：</label>
                        </div>
                        <div class="input-box">
                            <ul class="foxui-menu">
                                <li class="foxui-menu-submenu up-item">
                                    <div class="foxui-menu-handle foxui-menu-icon">
                                        <span>首页</span>
                                        <?php if(sizeof($frequencys) > 0): ?>
                                        <span class="foxui-margin-left-4 value" data-value="<?php echo htmlentities($frequencys[0]); ?>">
                                            <?php foreach($frequencyList as $key=>$vo): if($frequencys[0] == $vo['key']): ?>
                                            <?php echo htmlentities($vo['text']); ?>
                                            <?php endif; ?>
                                            <?php endforeach; ?>
                                        </span>
                                        <?php else: ?>
                                        <span class="foxui-margin-left-4 value" data-value="<?php echo htmlentities($frequencyList[0].key); ?>">
                                            <?php echo htmlentities($frequencyList[0].text); ?>
                                        </span>
                                        <?php endif; ?>
                                    </div>
                                    <div class="foxui-menu-menu">
                                        <ul class="foxui-menu-slide items">
                                            <?php if(sizeof($frequencys) > 0): foreach($frequencyList as $key=>$vo): ?>
                                            <li class="<?php if($frequencys[0]==$vo['key']): ?>foxui-menu-item-title<?php else: ?>foxui-menu-item<?php endif; ?>" data-value="<?php echo htmlentities($vo['key']); ?>"><?php echo htmlentities($vo['text']); ?></li>
                                            <?php endforeach; else: foreach($frequencyList as $key=>$vo): ?>
                                            <li class="<?php if($key==0): ?>foxui-menu-item-title<?php else: ?>foxui-menu-item<?php endif; ?>" data-value="<?php echo htmlentities($vo['key']); ?>"><?php echo htmlentities($vo['text']); ?></li>
                                            <?php endforeach; ?>
                                            <?php endif; ?>
                                        </ul>
                                    </div>
                                </li>

                                <li class="foxui-menu-submenu up-item">
                                    <div class="foxui-menu-handle foxui-menu-icon">
                                        <span>列表页</span>
                                        <?php if(sizeof($frequencys) > 1): ?>
                                        <span class="foxui-margin-left-4 value" data-value="<?php echo htmlentities($frequencys[1]); ?>">
                                            <?php foreach($frequencyList as $key=>$vo): if($frequencys[1] == $vo['key']): ?>
                                            <?php echo htmlentities($vo['text']); ?>
                                            <?php endif; ?>
                                            <?php endforeach; ?>
                                        </span>
                                        <?php else: ?>
                                        <span class="foxui-margin-left-4 value" data-value="<?php echo htmlentities($frequencyList[1].key); ?>">
                                            <?php echo htmlentities($frequencyList[1].text); ?>
                                        </span>
                                        <?php endif; ?>
                                    </div>
                                    <div class="foxui-menu-menu">
                                        <ul class="foxui-menu-slide items">
                                            <?php if(sizeof($frequencys) > 1): foreach($frequencyList as $key=>$vo): ?>
                                            <li class="<?php if($frequencys[1]==$vo['key']): ?>foxui-menu-item-title<?php else: ?>foxui-menu-item<?php endif; ?>" data-value="<?php echo htmlentities($vo['key']); ?>"><?php echo htmlentities($vo['text']); ?></li>
                                            <?php endforeach; else: foreach($frequencyList as $key=>$vo): ?>
                                            <li class="<?php if($key==1): ?>foxui-menu-item-title<?php else: ?>foxui-menu-item<?php endif; ?>" data-value="<?php echo htmlentities($vo['key']); ?>"><?php echo htmlentities($vo['text']); ?></li>
                                            <?php endforeach; ?>
                                            <?php endif; ?>
                                        </ul>
                                    </div>
                                </li>

                                <li class="foxui-menu-submenu up-item">
                                    <div class="foxui-menu-handle foxui-menu-icon">
                                        <span>内容页</span>
                                        <?php if(sizeof($frequencys) > 2): ?>
                                        <span class="foxui-margin-left-4 value" data-value="<?php echo htmlentities($frequencys[2]); ?>">
                                            <?php foreach($frequencyList as $key=>$vo): if($frequencys[2] == $vo['key']): ?>
                                            <?php echo htmlentities($vo['text']); ?>
                                            <?php endif; ?>
                                            <?php endforeach; ?>
                                        </span>
                                        <?php else: ?>
                                        <span class="foxui-margin-left-4 value" data-value="<?php echo htmlentities($frequencyList[2].key); ?>">
                                            <?php echo htmlentities($frequencyList[2].text); ?>
                                        </span>
                                        <?php endif; ?>
                                    </div>
                                    <div class="foxui-menu-menu">
                                        <ul class="foxui-menu-slide items">
                                            <?php if(sizeof($frequencys) > 2): foreach($frequencyList as $key=>$vo): ?>
                                            <li class="<?php if($frequencys[2]==$vo['key']): ?>foxui-menu-item-title<?php else: ?>foxui-menu-item<?php endif; ?>" data-value="<?php echo htmlentities($vo['key']); ?>"><?php echo htmlentities($vo['text']); ?></li>
                                            <?php endforeach; else: foreach($frequencyList as $key=>$vo): ?>
                                            <li class="<?php if($key==2): ?>foxui-menu-item-title<?php else: ?>foxui-menu-item<?php endif; ?>" data-value="<?php echo htmlentities($vo['key']); ?>"><?php echo htmlentities($vo['text']); ?></li>
                                            <?php endforeach; ?>
                                            <?php endif; ?>
                                        </ul>
                                    </div>
                                </li>

                            </ul>
                        </div>
                    </div>
                </div>-->

                <div class="section-main-item level foxui-margin-top-4">
                    <div class="foxui-input-group">
                        <div class="input-label">
                            <label>优先级别：</label>
                        </div>
                        <div class="input-box">
                            <ul class="foxui-menu">
                                <li class="foxui-menu-submenu up-item">
                                    <div class="foxui-menu-handle foxui-menu-icon">
                                        <span>首页</span>
                                        <?php if(sizeof($levels) > 0): ?>
                                        <span class="foxui-margin-left-4 value"><?php echo htmlentities($levels[0]); ?></span>
                                        <?php else: ?>
                                        <span class="foxui-margin-left-4 value"><?php echo htmlentities($levelList[0]); ?></span>
                                        <?php endif; ?>
                                    </div>
                                    <div class="foxui-menu-menu">
                                        <ul class="foxui-menu-slide items">
                                            <?php if(sizeof($levels) > 0): foreach($levelList as $key=>$vo): ?>
                                            <li class="<?php if($levels[0]==$vo): ?>foxui-menu-item-title<?php else: ?>foxui-menu-item<?php endif; ?>"><?php echo htmlentities($vo); ?></li>
                                            <?php endforeach; else: foreach($levelList as $key=>$vo): ?>
                                            <li class="<?php if($key==0): ?>foxui-menu-item-title<?php else: ?>foxui-menu-item<?php endif; ?>"><?php echo htmlentities($vo); ?></li>
                                            <?php endforeach; ?>
                                            <?php endif; ?>
                                        </ul>
                                    </div>
                                </li>
                                <li class="foxui-menu-submenu up-item">
                                    <div class="foxui-menu-handle foxui-menu-icon">
                                        <span>列表页</span>
                                        <?php if(sizeof($levels) > 1): ?>
                                        <span class="foxui-margin-left-4 value"><?php echo htmlentities($levels[1]); ?></span>
                                        <?php else: ?>
                                        <span class="foxui-margin-left-4 value"><?php echo htmlentities($levels[1]); ?></span>
                                        <?php endif; ?>
                                    </div>
                                    <div class="foxui-menu-menu">
                                        <ul class="foxui-menu-slide items">
                                            <?php if(sizeof($levels) > 1): foreach($levelList as $key=>$vo): ?>
                                            <li class="<?php if($levels[1]==$vo): ?>foxui-menu-item-title<?php else: ?>foxui-menu-item<?php endif; ?>"><?php echo htmlentities($vo); ?></li>
                                            <?php endforeach; else: foreach($levelList as $key=>$vo): ?>
                                            <li class="<?php if($key==7): ?>foxui-menu-item-title<?php else: ?>foxui-menu-item<?php endif; ?>"><?php echo htmlentities($vo); ?></li>
                                            <?php endforeach; ?>
                                            <?php endif; ?>
                                        </ul>
                                    </div>
                                </li>
                                <li class="foxui-menu-submenu up-item">
                                    <div class="foxui-menu-handle foxui-menu-icon">
                                        <span>内容页</span>
                                        <?php if(sizeof($levels) > 2): ?>
                                        <span class="foxui-margin-left-4 value"><?php echo htmlentities($levels[2]); ?></span>
                                        <?php else: ?>
                                        <span class="foxui-margin-left-4 value"><?php echo htmlentities($levels[4]); ?></span>
                                        <?php endif; ?>
                                    </div>
                                    <div class="foxui-menu-menu">
                                        <ul class="foxui-menu-slide items">
                                            <?php if(sizeof($levels) > 2): foreach($levelList as $key=>$vo): ?>
                                            <li class="<?php if($levels[2]==$vo): ?>foxui-menu-item-title<?php else: ?>foxui-menu-item<?php endif; ?>"><?php echo htmlentities($vo); ?></li>
                                            <?php endforeach; else: foreach($levelList as $key=>$vo): ?>
                                            <li class="<?php if($key==7): ?>foxui-menu-item-title<?php else: ?>foxui-menu-item<?php endif; ?>"><?php echo htmlentities($vo); ?></li>
                                            <?php endforeach; ?>
                                            <?php endif; ?>
                                        </ul>
                                    </div>
                                </li>
                            </ul>
                        </div>
                    </div>
                </div>

            </div>
        </div>
    </div>
</div>

<div class="foxcms-content-footer">
    <button class="is-long foxui-size-small foxui-solid-primary" id="save">保存</button>
</div>

<div class="foxcms-content-copy">
  <p>
    <span>Copyright © 2021-<?php echo isset($nowtime) ? htmlentities($nowtime) : '现在'; ?></span>
    <strong>FOXCMS</strong>
    <span>版权所有</span>
  </p>
</div>

                </div>
            </div>
        </div>
    </div>
</body>
<script src="<?php echo htmlentities($staticPath); ?>js/jquery-3.6.0.min.js"></script>
<script src="<?php echo htmlentities($staticPath); ?>js/tinymce/tinymce.min.js"></script>
<script src="<?php echo htmlentities($staticPath); ?>js/echarts.min.js"></script>
<script src="<?php echo htmlentities($staticPath); ?>js/foxui-1.32.min.js"></script>
<script>
    //全局上传文件端口
    var UPLOAD_FILE_URL = "<?php echo url('upload_files/upload'); ?>";
    //图片粘贴下载
    var UPIMG_URL = "<?php echo url('upload_files/upimg'); ?>";
    var SERVER_URL = "/";
    //配置的后台路径
    var ADMIN_PATH = "/" + "<?php echo config('adminconfig.admin_path'); ?>";
    //静态文件路径
    var STATIC_PATH ="<?php echo config('adminconfig.static_path'); ?>";
    //退出地址
    var LOGOUT_PATH = "<?php echo logout_url(); ?>";
    //栏目模型地址
    var GETCOLUMMODELS_PATH = "<?php echo getColumModels_url(); ?>";
    //个人中心
    var ADMINEDIT_PATH = "<?php echo adminEdit_url(); ?>";
    //更新缓存
    var LOGINCLEARCACHE_PATH = "<?php echo loginClearCache_url(); ?>";
    //修改密码
    var ADMINUPDATEPASSWORD_PATH = "<?php echo adminUpdatePassword_url(); ?>";
    //循环生成静态html
    var SEOALLSITE_PATH = "<?php echo seoAllSite_url(); ?>";
    //单独静态生成
    var SEOADDDATABUILDDETAIL_PATH = "<?php echo seoAddDataBuildDetail_url(); ?>";
    //单独静态栏目生成
    var SINGLEALLSITE_PATH = "<?php echo singleAllSite_url(); ?>";
    //删除幻灯片
    var SLIDEDELETE_PATH = "<?php echo slideDelete_url(); ?>";
    //编辑幻灯片
    var SLIDEEDIT_PATH = "<?php echo slideEdit_url(); ?>";
    //后台首页地址
    var HOME_PATH = "<?php echo url('Index/index'); ?>";
    //切换语言
    var HANDOVER_LANG_PATH = "<?php echo url('handoverLang'); ?>";
</script>
<script src="<?php echo htmlentities($staticPath); ?>js/rich_text.js"></script>
<script>

    foxui.imagesManager.init({
        paginationOption: {
            type: 'solid',
            size: 'small',
            pageSize: 10,
            pageNum: 7,
            pageSizeList: [10, 20, 30, 50],
            isShowJump: true,
            isShowTotal: true,
            isShowSize: true
        },
        url: "<?php echo url('PicManager/picManager'); ?>",
    });

    foxui.videoManager.init({
        paginationOption: {
            type: 'solid',
            size: 'small',
            pageSize: 10,
            pageNum: 7,
            pageSizeList: [10, 20, 30, 50],
            isShowJump: true,
            isShowTotal: true,
            isShowSize: true,
        },
        url: "<?php echo url('VideoManager/videoManager'); ?>",
    });
</script>
<script src="<?php echo htmlentities($staticPath); ?>js/common.js"></script>
<script src="<?php echo htmlentities($staticPath); ?>js/admin_common.js"></script>

<script>
    foxui.tooltip({
        el: '#wenti',
        content: '更新内容时候自动更新网站地图',
        placement: ['right', 'center'],
    });

    function checkExample(event) {
        event.stopPropagation();
        let curObj = event.target;
        let nextObj = $(curObj).next();
        let showVal = $(nextObj).css('display');
        if(showVal == "" || showVal == "none"){
            $(nextObj).css({"display": "inline-block"});
        }else{
            $(nextObj).css({"display": "none"});
        }
    }

    $('ul.items li').click(function () {
        let val = $(this).text();
        let dataV = $(this).attr("data-value");
        let spanV = $(this).closest("li.up-item").find('span.value');
        $(spanV).html(val);
        $(spanV).attr("data-value", dataV);
        $(this).siblings().removeClass("foxui-menu-item-title").removeClass("is-active");
        $(this).siblings().addClass("foxui-menu-item");
        $(this).removeClass("foxui-menu-item");
        $(this).addClass("foxui-menu-item-title").addClass("is-active");
    });

    //切换显示
    function checkItem(event) {
       let obj = event.currentTarget;
       let findObj = $(obj).next('div.foxui-display-inline-block');
       if($(findObj).hasClass('display-none')){
           $(findObj).removeClass('display-none');
       }else{
           $(findObj).addClass("display-none");
       }
    }
    //手动更新
    function handUpdate(type) {

        $.ajax({
            type: "post",
            url: 'handUpdate',
            dataType: "json",
            data: {type},
            success: function (res) {
                if (res.code == 1) {
                    foxui.message({
                        type: 'success',
                        text: res.msg
                    })
                } else {
                    foxui.message({
                        type: 'warning',
                        text: res.msg
                    })
                }
            }, error: function (res) {
                foxui.message({
                    type: 'warning',
                    text: res.responseJSON.msg
                })
            }
        });
    }
</script>


<script>

    //保存
    $('#save').click(function () {

        //自动生成
        let is_auto = $('div.is_auto .foxui-radio.is-checked input').val();
        //过滤栏目
        let filter = '';
        $('div.filter0').find('.foxui-checkbox.is-checked').each(function () {
            filter += ($(this).find('input').val() + ",");
        })
        //sitemap类型
        let sitemap_type = '';
        $('div.sitemap_type').find('.foxui-checkbox.is-checked').each(function () {
            sitemap_type += ($(this).find('input').val() + ",");
        })
        //更新频率
        let frequency = '';
        $('div.frequency').find('span.value').each(function () {
            frequency += ($(this).attr("data-value") + ",");
        })
        //优先级别
        let level = '';
        $('div.level').find('span.value').each(function () {
            level += ($(this).text() + ",");
        })

        let datas = {is_auto,filter,sitemap_type,frequency,level};

        foxui.dialog({
            title: '保存',
            content: '您确定要保存吗',
            cancelText: '取消',
            confirmText: '保存',
            confirm: function (callback) {
                $.ajax({
                    type: "post",
                    url: 'index',
                    dataType: "json",
                    data: datas,
                    success: function (res) {
                        if (res.code == 1) {
                            foxui.message({
                                type: 'success',
                                text: res.msg
                            })
                            setTimeout('myrefresh()', 1000); //指定10秒刷新一次
                        } else {
                            foxui.message({
                                type: 'warning',
                                text: res.msg
                            })
                        }
                    }, error: function (res) {
                        foxui.message({
                            type: 'warning',
                            text: res.responseJSON.msg
                        })
                    }
                });
                callback();
            },
            cancel: function () {
                foxui.message({
                    type: 'warning',
                    text: '取消操作'
                })
            },
        });

    })

</script>


</html>
